var app=angular.module("app",["ui.router","angularCSS"]);
app.config(["$stateProvider",'$urlRouterProvider',function($stateProvider,$urlRouterProvider){
	$stateProvider
	.state("home",{
		url:'/home',
		views:{
			'view':{

				templateUrl:"template/home/home.html",
				controller:"homeCtrl",
				css:"template/home/home.css"
			}
		}

	})
	.state("market",{
		url:'/market',
		views:{
			'view':{

				templateUrl:"template/market/market.html",
				controller:"marketCtrl",
				css:"template/market/market.css"
			}
		}
	})
	.state("shopping",{
		url:'/shopping',
		views:{
			'view':{

				templateUrl:"template/shopping/shopping.html",
				controller:"shoppingCtrl",
				css:"template/shopping/shopping.css"
			}
		}
	})
	.state("mine",{
		url:'/mine',
		views:{
			'view':{
				templateUrl:"template/mine/mine.html",
				controller:"mineCtrl",
				css:"template/mine/mine.css"
				
			}
		}
	})
	.state("integral",{
		url:"/integral",
		views:{
            "view":{
            	templateUrl:"template/integral/integral.html",
            	controller:function($scope){

            	},
				css:"template/integral/integral.css"
            }
		}
				
	})
	.state("1",{
		url:'/miaosha',
		views:{
			'view':{
				templateUrl:"template/miaosha/miaosha.html",
				controller:"miaoshaCtrl",
				css:"template/miaosha/miaosha.css"
				
			}
		}
	})

	$urlRouterProvider
	.otherwise("/home")

}])